<template>
	<div class="no_data">
		<div class="no_data_main">404
			<a href="javascript:;" @click="goHomeClickHandle">返回首页</a>
		</div>
	</div>
</template>
<script>
	export default{
		name: "nodata",
		data: function(){
			return {}
		},
		mounted: function(){
			this.$emit("setDataObject", {type:"nodata", title:"未知错误", showTip:false});
		},
		methods:{
			goHomeClickHandle:function(){
				this.$router.push('/')
			}
		}
	}
</script>
<style lang="less">
	@base:23.44/1rem;
	.no_data{
		position: fixed;
		top:0;
		left:0;
		right:0;
		bottom:0;
		flex-direction: row;
		-webkit-flex-wrap: nowrap;
		flex-wrap: nowrap;
		justify-content: center;
		-webkit-justify-content: center;
		align-content: center;
		-webkit-align-content: center;
		align-items: center;
		-webkit-align-items: center;
		display: flex;
		display: -webkit-flex;
		display: -webkit-box; /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */  
		display: -moz-box; /* Firefox 17- */  
		display: -webkit-flex; /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */  
		display: -moz-flex; /* Firefox 18+ */  
		display: -ms-flexbox; /* IE 10 */  
		.no_data_main{
			font-size:100/@base;
			color:#ccc;
			text-align: center;
			padding:50% 0;
			a{
				font-size: 20/@base;
				display: block;
				margin:60/@base auto 0 auto;
				text-decoration: none;
				color:#333;
				width:240/@base;
				text-align: center;
				padding:16/@base 20/@base;
				background-color: #fff;
				border-radius: 5/@base;
			}
		}
	}
</style>